#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QWidget>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QPixmap>
#include <QImage>
#include <QMovie>

class MainWindow : public QWidget
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void fetchWeather();
    void handleReply(QNetworkReply *reply);

private:
    QLineEdit *cityInput;
    QLabel *weatherInfo;
    QLabel *weatherIcon;
    QLabel *gifLabel;
    QPushButton *fetchButton;
    QNetworkAccessManager *manager;
};

#endif // MAINWINDOW_H
